<template>
	<view>
		<view class="uni-padding-wrap">
			<view class="cu-bar bg-white solid-bottom margin-top">
				<view class="action">
					<text class="cuIcon-title text-blue"></text>缴费信息
				</view>
			</view>
			<view class="solids-bottom padding-xs flex align-center">
				<view class="flex-sub text-center">
					<view class="solid-bottom text-xl padding">
						<text class="text-black text-bold">个人信息</text>
					</view>
					<view class="padding">姓名：{{tzxs.xm}}</view>
					<view class="padding">身份证：{{tzxs.zjhm}}</view>
				</view>
			</view>
			<view v-if="tzxs.custom2" class="solids-bottom padding-xs flex align-center">
				<view class="flex-sub text-center">
					<view class="solid-bottom text-xl padding">
						<text class="text-black text-bold">专业</text>
					</view>
					<view class="padding">{{tzxs.custom2.zymc}}</view>
				</view>
			</view>
			<view class="solids-bottom padding-xs flex align-center">
				<view class="flex-sub text-center">
					<view class="solid-bottom text-xl padding">
						<text class="text-black text-bold">缴费合计</text>
					</view>
					<view class="padding">{{tzxs.jfedhj}}</view>
				</view>
			</view>
			<view class="solids-bottom padding-xs flex align-center">
				<view class="flex-sub text-center">
					<view class="solid-bottom text-xl padding">
						<text class="text-black text-bold">备注</text>
					</view>
					<view @click="gettext()" class="padding" style="word-break:break-all;word-wrap:break-word;-webkit-user-select: text;user-select: text;" selectable="true">{{tzxs.bzz}}</view>
				</view>
			</view>
		</view>
	</view>
</template>


<script>
	var _this;
	var vk = uni.vk;
	export default {
		data() {
			// 页面数据变量
			return {
				options:{},
				tzxs:{}
			}
		},
		// 监听 - 页面每次【加载时】执行(如：前进) await
		async onLoad(options = {}) {
			_this = this;
			vk = uni.vk;
			this.options = options;

			let tzxs = vk.getStorageSync('tzxs_key');
			await this.getaaaa(tzxs.zjhm)
		},
		// 监听 - 页面【首次渲染完成时】执行。注意如果渲染速度快，会在页面进入动画完成前触发
		onReady(){
			// 
		},
		// 监听 - 页面每次【显示时】执行(如：前进和返回) (页面每次出现在屏幕上都触发，包括从下级页面点返回露出当前页面)
		onShow() {
			
		},
		// 监听 - 页面每次【隐藏时】执行(如：返回)
		onHide() {
			
		},
		// 监听 - 点击右上角转发时
		onShareAppMessage(options) {
			
		},
		// 函数
		methods: {
			getaaaa(zjhm){
				return vk.callFunction({
				  url: 'client/gsxy/tzxs/pub/tzxsapi.getzfxinxi',
				  data:{
				    zjhm:zjhm
				  }
				}).then((data) => {
					this.tzxs = data.info
					if(this.tzxs.custom2){
						this.tzxs.jfedhj = vk.pubfn.priceFilter(this.tzxs.custom2.total_fee+this.tzxs.total_fee);
					}else{
						this.tzxs.jfedhj = vk.pubfn.priceFilter(this.tzxs.total_fee);
					}
				}).catch((err) => {});
			},
			//获取内容
			gettext(){
				wx.setClipboardData({
				  data: 'http://www.hngsxy.com/pages/anon/xueyuan/wldchaxun.html',
				  success: function (res) {
					wx.getClipboardData({
					  success: function (res) {
						console.log(res.data) //获取复制的文本内容
					  }
					})
				  }
				})
			}
		},
		// 监听器
		watch:{
			
		},
		// 计算属性
		computed:{
			
		}
	}
</script>
<style lang="scss" scoped>
	
	
</style>